package com.amit.hibernate;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	
	static SessionFactory factory;

	public static SessionFactory getfactory() {
		
		Configuration cfg=new Configuration();
		cfg=cfg.configure();
		factory=cfg.buildSessionFactory();
		
		return factory;
	}
	
	
	

}
